package com.gticket.orderservice.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: 伴你时光尽头
 * @Date: 2019/11/18 16:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Orders implements Serializable {
    private String databasename;//数据库名
    private Integer order_id;//订单id
    private String order_num;//订单号
    private String pay_num;//支付号
    private Integer order_state;//订单状态   0=未支付  1=已支付  2=已失效  3=未使用  4=已使用  5=已取消 6=已改签
    private Integer user_id;//用户id
    private String create_time;//订单创建时间
    //    private String end_time;
    private Integer cinema_id;//影院分院影院id
    private List<OrderItems> orderItemss;//订单项
    private String ticketnum;//取票码
    private Integer flag;//软删除
    //    private List<OrderItems> orderItemss;//订单项
    private BigDecimal totalprice;//总价格
    private String lastTime;


    private String cinema_name;//影院分院影院   名称

    /**
     * @param databasename
     * @param order_num
     * @param user_id
     * @param cinema_id
     */
    public Orders(String databasename, String order_num, Integer user_id, Integer cinema_id, String cinema_name) {
        this.databasename = databasename;
        this.order_num = order_num;
        this.user_id = user_id;
        this.cinema_id = cinema_id;
        this.cinema_name = cinema_name;
    }

    /**
     * @param databasename
     * @param order_num
     */
    public Orders(String databasename, String order_num) {
        this.databasename = databasename;
        this.order_num = order_num;
    }

    /**
     * @param databasename
     * @param order_num
     * @param pay_num
     */
    public Orders(String databasename, String order_num, String pay_num) {
        this.databasename = databasename;
        this.order_num = order_num;
        this.pay_num = pay_num;
    }

}
